<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
class Admin_Controller extends MX_Controller {

    function __construct() {
        parent::__construct();
		
		//$this->load->model(array('module/mod_model'));
		$this->load->model(array('page/mod_page'));
		$this->load->helper('my_file');
		
		if(!$this->checkSession()){
			redirect('authentication/login');
			exit();
		}
    }
	
	public function checkSession(){
		if($this->session->userdata('admin')){
			return TRUE;
		}else{
			return FALSE;
		}
	}
}
